<%@ page import="com.oval.util.JspHelper" %>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="com.oval.foundation.util.*" %>
<%@ page import="com.oval.foundation.engine.*" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<html>
<head>
<title>e-manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/chinese/csscontent.css" type="text/css"> 
<script language="JavaScript" src="../css/chinese/script.js"></script>
<script language="JavaScript">

<%--what to do if press DONE Button--%> 

function page_done()
{
  if(!isEmpty(frm.messagetype.value) && frm.messagetype.value != "P" && frm.messagetype.value != "J" && frm.messagetype.value != "U" && frm.messagetype.value != "A" && frm.messagetype.value != "C" && frm.messagetype.value != "T")
  {
    alert("Message Type must be P/J/U/A/C/T");
    return;
  }
  frm.actionname.value = "save";
  if(isEmpty(frm.messagecode.value) || isEmpty(frm.messagetype.value) || isEmpty(frm.messagename.value) || isEmpty(frm.messagedescen.value) || isEmpty(frm.messagedesccn.value)|| isEmpty(frm.messagedescjp.value))
  {
    alert("except module, please input every data!");  
    return;
  }
  document.frm.submit();
}

<%--Display The Page--%> 

</script>
</head>
<body>
<form name="frm" action="MessageAction.jsp">
  <input type="hidden" name="actionname">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#999999">
  <tr> 
    <td class="td_title_bg">
      Message Code
    </td>
    <td class="td_title_bg">
      Message Type
    </td>
    <td class="td_title_bg">
      Message Desc(CN)
    </td>
    <td class="td_title_bg">
      Message Desc(EN)
    </td>
    <td class="td_title_bg">
      Message Desc(JP)
    </td>
     <td class="td_title_bg">
      Message Name
    </td>
    <td class="td_title_bg">
      Module
    </td>
  </tr>
     <tr class="td_bg_row"> 
       <td class="text">
         <div align="left">
           <input type="text" name="messagecode">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="messagetype">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="messagedesccn">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="messagedescen">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="messagedescjp">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="messagename">
         </div>
       </td>
       <td class="text">
         <div align="left">
           <input type="text" name="module">
         </div>
       </td>
     </tr>
  <tr> 
    <td class="td_title_bg" colspan="10">
         <div align="center">
           <input type="button" name="DONE" value="DONE" onclick="javascript:page_done()">
           <input type="button" name="BACK" value="BACK" onclick="javascript:history.go(-1)">
         </div>
    </td>
  </tr>
</table>
</form>
</body>
</html>

